﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NF_Web.Event
{
    public static class MenuEvent
    {


        public delegate void OpenNewFromInMDIEventHanld(int index);
        public static event OpenNewFromInMDIEventHanld OpenNewFromInMDIEvent;
        public static void OpenNewFromInMDI(int index)
        {
            if (OpenNewFromInMDIEvent != null)
                OpenNewFromInMDIEvent(index);
        }

        public delegate void ChangeTitleStateEventHandler();
        public static event ChangeTitleStateEventHandler ChangeTitleState;

        public static void ChangeState()
        {
            if (ChangeTitleState != null)
                ChangeTitleState();
        }
    }
}
